package com.guohui.boot1.client;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="feign1")
@ConditionalOnMissingBean(Feign1FeignClient.class)
public interface Feign1FeignClient {

  //接口参数必须按照springmvc参数注解声明，继承或实现的controller可以没有
  @RequestMapping(value="/hello",method=RequestMethod.POST)
  public String hello(@RequestParam("client") String client);
}
